< previous page page_534 next page >

Page 534
analysis.gifFor an Access database you need a full path and filename. For other data sources you will need other information such as a server name, database name, and maybe even some network parameters.

Adding Commands
To really do anything with the data environment object, you need to add Command objects to the connection. Command objects are like views into the data. They allow you to retrieve recordsets for use in bound data forms or you can use them instead of stand-alone ADO recordsets.
You can create a Command object thats based on a table, a stored procedure, a view, or a synonym, or you can type in your own SQL SELECT statement. You can use the SQL Builder to assist you in writing your SQL statement. Command objects can be built automatically by dragging and dropping a table name from the Data View window into the Data Environment window. Youll learn more about the Data View window in the next section.
To add a new command in the data environment, you can either right-click the connection and choose the Add Command menu item, or you can select the Add Command icon from the toolbar. Once youve added a new command, click it and set the Name property. Next, you need to open the Properties dialog box for the Command object and select the source of the data. Figure 27.4 shows you what the Properties dialog box looks like for a Command object.
8160-0534a.gif
Figure 27.4
A 
Command Objects properties.

 
< previous page page_534 next page >

If you like this book, buy it!